<template>
  <div>
    <div class="app-container">
      <!-- 上 -->
      <el-card class="up-card box-card">
        <div>
          <!-- 上 -->
          <div slot="header" class="up">
            <span><i class="el-icon-search" />筛选搜索</span>
            <div>
              <el-button size="mini">重置</el-button>
              <el-button type="primary" size="mini">查询搜索</el-button>
            </div>
          </div>
          <!-- 下 -->
          <div class="down">
            <div class="item">
              <div>输入搜索:</div>
              <el-input
                v-model="input"
                placeholder="服务单号"
                style="width: 200px"
                class="inp"
              />
            </div>
            <div class="item">
              <div>处理状态:</div>
              <el-select
                v-model="state"
                placeholder="全部"
                style="width: 200px"
                class="inp"
              >
                <el-option
                  v-for="item in arrState"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
                />
              </el-select>
            </div>
            <div class="item">
              <div>申请时间:</div>
              <el-date-picker
                v-model="applyTime"
                placeholder="请选择时间"
                style="width: 200px"
                class="inp"
                type="date"
              />
            </div>
            <div class="item">
              <div>操作人员:</div>
              <el-input
                v-model="input"
                placeholder="全部"
                style="width: 200px"
                class="inp"
              />
            </div>
            <div class="item">
              <div>处理时间:</div>
              <el-date-picker
                v-model="handlingTime"
                placeholder="请选择时间"
                style="width: 200px"
                class="inp"
                type="date"
              />
            </div>
            <div class="item" />
          </div>
        </div>
      </el-card>
      <!-- /上 -->

      <!-- 中 -->
      <el-card class="center-card box-card">
        <div>
          <span><i class="el-icon-notebook-2" />数据列表</span>
        </div>
      </el-card>
      <!-- /中 -->

      <!-- 下 -->
      <el-card class="down-card box-card">
        <!-- 上表格 -->
        <div>
          <el-table border="" :data="arrOrder" style="width: 100%">
            <el-table-column type="selection" width="55" align="center" />
            <el-table-column prop="orderId" label="服务单号" align="center" />
            <el-table-column prop="applyTime" label="申请时间" align="center" />
            <el-table-column prop="userName" label="用户账号" align="center" />
            <el-table-column prop="money" label="退款金额" align="center" />
            <el-table-column prop="state" label="申请状态" align="center" />
            <el-table-column prop="handlingTime" label="处理时间" align="center" />
            <el-table-column label="操作" align="center">
              <template>
                <el-button size="mini">查看详情</el-button>
              </template>
            </el-table-column>
          </el-table>
        </div>
        <!-- 下左右 -->
        <div class="last-item">
          <!-- 左 -->
          <div>
            <el-form :inline="true">
              <el-form-item>
                <el-select placeholder="批量删除" style="width: 200px" class="inp">
                  <el-option value="批量删除" label="批量删除" />
                </el-select>
              </el-form-item>
              <el-form-item>
                <el-button type="primary" size="mini">确定</el-button>
              </el-form-item>
            </el-form>
          </div>
          <!-- 右 -->
        </div>
      </el-card>
      <!-- /下 -->
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      state: '',
      applyTime: '', // 申请时间
      handlingTime: '', // 处理时间
      multipleSelection: [],
      arrState: [
        {
          label: '待处理',
          value: 0
        },
        {
          label: '退货中',
          value: 1
        },
        {
          label: '已完成',
          value: 2
        },
        {
          label: '已拒绝',
          value: 3
        }
      ],
      arrOrder: [
        {
          orderId: 1,
          applyTime: '2019-10-20',
          userName: 'admin',
          money: 100,
          state: 1,
          handlingTime: '2010-10-21'
        },
        {
          orderId: 2,
          applyTime: '2019-10-20',
          userName: 'admin',
          money: 100,
          state: 1,
          handlingTime: '2010-10-21'
        },
        {
          orderId: 3,
          applyTime: '2019-10-20',
          userName: 'admin',
          money: 100,
          state: 1,
          handlingTime: '2010-10-21'
        }
      ]
    }
  },
  methods: {}
}
</script>

<style lang='scss' scoped>
.box-card {
  margin-bottom: 30px;
}
span {
  font-size: 20px;
}
.up-card {
  .up {
    display: flex;
    justify-content: space-between;
  }
  .down {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 0px 200px;
    .item {
      flex: 33.33%;
      display: flex;
      justify-content: center;
      align-items: center;
      margin-bottom: 10px;
      .inp {
        margin-left: 20px;
      }
    }
  }
}
.down-card {
  .last-item {
    margin-top: 30px;
  }
}
</style>
